/*
 * ListOperatorExpression.java
 *
 * Created on March 1, 2007, 10:17 PM
 *
 * (C) R. Alexander Milowski alex@milowski.com
 */

package com.smallx.xpath.parser;

import java.net.URI;
import org.infoset.xml.Item;

/**
 *
 * @author R. Alexander Milowski
 */
public class NamespaceTestExpression extends NodeTestExpression {

   URI namespace;
   public NamespaceTestExpression(Item.ItemType type,URI namespace) {
      super(type,null);
      this.operator = Expression.Operator.NamespaceTest;
      this.namespace = namespace;
   }
   
   public URI getNamespace() { return namespace; }
   
   public String toString() {
      return "("+operator+" '"+namespace+"' )";
   }
}
